Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-yaml-2

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-yaml-2

Extend the RC module with YAML parsing

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
291
decreased by-1.69%
Maintainers
1
Weekly downloads
 
Created
Source

rc-yaml

rc + YAML - INI = this module

This module cannibalizes the rc module and tries to parse a YAML "rc" file, in addition to JSON and INI formats.

Key Differences Between this and rc

  • Well, if the "rc" file is not JSON, we try YAML, then fall back to INI.
  • Since there's crossover between INI and YAML, we choose YAML if the YAML parser doesn't return a String value. So, if we end up with a String, we call it INI. The end.

Usage

var rc = require('rc-yaml');

var config = rc('name', {
  defaults: 'go here'
});

Custom parsers are still supported. See rc's README.md for full usage.

If you just want the parsing function for some reason, it's accessible via:

var parser = require('rc-yaml').parser;

A Note About Peer Dependencies

This module depends on the rc module, which means installing them both side-by-side is unnecessary. One or the other, people.

Using peerDependencies here may be more politically correct, but at a cost. Since rc is "for lazy people", when in Rome...

Author, Somewhat

Christopher Hiller

License

MIT

Keywords

FAQs

Package last updated on 23 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc